package com.asa.a.code;

public class ClassInitTest3 {
	
	static class Father{
		public static int A =1;
		static {
			A=2;
		}
	}
	
	static class Son extends Father{
		public static int B = A;
	}
	
	
	public static void main(String[] args) {
		//父类会先加载，其次再加载Son类
		System.out.println(Son.B);//2
		
	}
	
	
	
	
}
